import Vue from 'vue'
import App from './App.vue'
import router from './router/index.js'
import 'vant/lib/index.css'
import http from '../http'
import $ from 'jquery'
import axios from 'axios'
import Vant from  'vant'
import {Toast} from 'vant'
// import VueJsonp  from  'vue-jsonp'
const categorys=[
  {name:'首页'},
  {rid:1,name:'动画',child:[{rid:24,name:'MAD·AMV'},{rid:25,name:'MMD·3D'},{rid:47,name:'短片·手书·配音'},{rid:210,name:'手办·模玩'},{rid:86,name:'特摄'},{rid:27,name:'综合'}]},
  {rid:13,name:'番剧',child:[{rid:33,name:'连载动画'},{rid:32,name:'完结动画'},{rid:51,name:'咨讯'},{rid:152,name:'官方延伸'}]},
  {rid:167,name:'国创',child:[{rid:153,name:'国产动画'},{rid:168,name:'国产原创相关'},{rid:169,name:'布袋戏'},{rid:195,name:'动态漫·广播剧'},{rid:170,name:'资讯'}]},
  {rid:3,name:'音乐',child:[{rid:28,name:'原创音乐'},{rid:31,name:'翻唱'},{rid:30,name:'VOCALOID·UTAU'},{rid:194,name:'电音'},{rid:59,name:'演奏'},{rid:193,name:'MV'},{rid:29,name:'音乐现场'},{rid:130,name:'音乐综合'}]},
  {rid:129,name:'舞蹈',child:[{rid:20,name:'宅舞'},{rid:198,name:'街舞'},{rid:199,name:'明星舞蹈'},{rid:200,name:'中国舞'}]},
  {rid:4,name:'游戏',child:[{rid:17,name:'单机游戏'},{rid:171,name:'电子竞技'},{rid:172,name:'手机游戏'},{rid:65,name:'网络游戏'},{rid:173,name:'桌游棋牌'},{rid:121,name:'GMV'},{rid:136,name:'音游'},{rid:19,name:'Mugen'}]},
  {rid:36,name:'知识',child:[{rid:201,name:'科学科普'},{rid:124,name:'社科人文'},{rid:207,name:'财经'},{rid:208,name:'学院学习'},{rid:209,name:'职业职场'},{rid:122,name:'野生技术协会'}]},
  {rid:188,name:'数码',child:[{rid:95,name:'手机平板'},{rid:189,name:'电脑装机'},{rid:190,name:'摄影摄像'},{rid:191,name:'影音智能'}]},
  {rid:160,name:'生活',child:[{rid:138,name:'搞笑'},{rid:21,name:'日常'},{rid:75,name:'动物圈'},{rid:161,name:'手工'},{rid:162,name:'绘画'},{rid:163,name:'运动'},{rid:176,name:'汽车'},{rid:174,name:'其他'}]},
  {rid:211,name:'美食',child:[{rid:76,name:'美食制作'},{rid:212,name:'美食侦探'},{rid:213,name:'真香测评'},{rid:214,name:'田园美食'},{rid:215,name:'美食记录'}]},
  {rid:119,name:'鬼畜',child:[{rid:22,name:'鬼畜教程'},{rid:26,name:'音MAD'},{rid:126,name:'人力VOCALOID'},{rid:127,name:'教程演示'}]},
  {rid:155,name:'时尚',child:[{rid:157,name:'美妆'},{rid:158,name:'服饰'},{rid:164,name:'健身'},{rid:159,name:'T台'},{rid:192,name:'风尚标'}]},
  {rid:5,name:'娱乐',child:[{rid:71,name:'综艺'},{rid:137,name:'明星'}]},
  {rid:181,name:'影视',child:[{rid:182,name:'影视杂谈'},{rid:183,name:'影视剪辑'},{rid:85,name:'短片'},{rid:184,name:'预告·资讯'}]},
  {rid:177,name:'纪录片',child:[{rid:37,name:'人文·历史'},{rid:127,name:'科学·探索·自然'},{rid:179,name:'军事'},{rid:180,name:'社会·美食·旅行'}]},  
  {rid:23,name:'电影',child:[{rid:147,name:'华语电影'},{rid:145,name:'欧美电影'},{rid:146,name:'日本电影'},{rid:83,name:'其他国家'}]},
  {rid:11,name:'电视剧',child:[{rid:185,name:'国产剧'},{rid:187,name:'海外剧'}]},
  {name:'直播'},
  {name:'相册'},
]
Vue.prototype.$http=http
Vue.prototype.$ = $;
Vue.prototype.$categorys=categorys
axios.defaults.headers.post["Content-type"]="application/json";
axios.defaults.headers.get["Content-type"]="application/json";
Vue.prototype.$axios=axios
Vue.config.productionTip = false;
// Vue.use(VueJsonp)
Vue.use(Vant)
Vue.use(Toast)
new Vue({
  router,
  render: h => h(App),
}).$mount('#app')
